from pyson.gen import PysonObject, string

class Comp1(PysonObject):
    name = string()

class Comp2(PysonObject):
    label = string()

class Comp3(Comp1, Comp2): pass    

class Comp1Test(object):
    def scenario1(self):
        c = Comp1()
        return c.createBuilder()

    def scenario2(self):
        c = Comp1()
        c.name = "XYZ"
        return c.createBuilder()

    def scenario3(self):
        c = Comp3()
        c.name = "XYZ"
        c.label = "ABC"
        return c.createBuilder()
